﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ServisniList
{
    public class PrepravljeniDataGridView : DataGridView
    {
        public delegate void EnterEventHandler(object sender, EventArgs e);
        public event EnterEventHandler EnterEvent;

        protected override bool ProcessDataGridViewKey(KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                EnterEvent(this, e);
                return true;
            }
            return base.ProcessDataGridViewKey(e);
        }
    }
}
